package com.springmvc.cto51.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;

/**
 * UserInfo--SpringMVC-test
 *
 * @author: Jovi
 * @createTime: 2018-08-16 16:31
 **/
public class UserInfo {

    private Integer userId;
    private String userName;
    private String[] xq;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date userTime;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String[] getXq() {
        return xq;
    }

    public void setXq(String[] xq) {
        this.xq = xq;
    }

    public Date getUserTime() {
        return userTime;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setUserTime(Date userTime) {
        this.userTime = userTime;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", xq=" + Arrays.toString(xq) +
                ", userTime=" + userTime +
                '}';
    }
}
